package itheima.TestThread.ThreadTest.MyVolatile;

public class Demo {
    public static void main(String[] args) {
        Boy boy =new Boy();
        boy.setName("小强");
        boy.start();

        Girl girl = new Girl();
        girl.setName("凤梨");
        girl.start();
    }
}
